//package cn.myschool.web;
//
//import javax.servlet.ServletException;
//import javax.servlet.annotation.WebServlet;
//import javax.servlet.http.HttpServlet;
//import javax.servlet.http.HttpServletRequest;
//import javax.servlet.http.HttpServletResponse;
//import java.io.IOException;
//import java.io.PrintWriter;
//
///**
// * @author oldliu
// * @since 1.0
// */
//@WebServlet("/operate")
//public class MainServlet extends HttpServlet {
//    @Override
//    protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
//         doPost(req, resp);
//    }
//
//    //每一个请求带一个额外的参数，表示我要做的事情
//    @Override
//    protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
//        String op=req.getParameter("operate");
//        PrintWriter out = resp.getWriter();
//        if("login".equals(op)){
//            out.println("login");
//        }else if("updateSubject".equals(op)){
//            out.println("更新课程信息");
//        }else if("deleteSubject".equals(op)){
//            out.println("删除课程信息");
//        }else{
//            out.println("没有实现这个功能");
//        }
//    }
//}
